package com.zb.jsp.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.zb.jsp.service.AdvertTypeService;
import com.zb.jsp.vo.commonVo.AdvertAddressNameVo;
import com.zb.jsp.vo.commonVo.AdvertTypeVo;

public class AdvertTypeAction extends ActionSupport {
	//用于查询广告类型的volist
	List<AdvertTypeVo> advertTypeVoList;
	//用于查询所属广告位的volist
	List<AdvertAddressNameVo> advertAddressNameVoList;
	
	
	AdvertTypeService advertTypeService = new AdvertTypeService();
	
	/**	
	 * 查询广告类型的方法
	 */
	public void findAdvertType(){
		advertTypeVoList = advertTypeService.fidAdvertTypeList();
	}
	
	/**	
	 * 查询广告所属的广告位
	 */
	public void findAdvertAddressName(){
		advertAddressNameVoList = advertTypeService.findAdvertAddressNameList();
		System.out.println("查询广告所属的广告位");
	}
	
	public List<AdvertTypeVo> getAdvertTypeVoList() {
		return advertTypeVoList;
	}

	public void setAdvertTypeVoList(List<AdvertTypeVo> advertTypeVoList) {
		this.advertTypeVoList = advertTypeVoList;
	}

	public List<AdvertAddressNameVo> getAdvertAddressNameVoList() {
		return advertAddressNameVoList;
	}

	public void setAdvertAddressNameVoList(
			List<AdvertAddressNameVo> advertAddressNameVoList) {
		this.advertAddressNameVoList = advertAddressNameVoList;
	}
}
